package com.jiesen.base.modules.uploadFile.service;



import com.jiesen.base.baseDao.BaseService;
import com.jiesen.base.modules.uploadFile.model.Folder;

import java.util.List;
import java.util.Map;

public interface FolderService extends BaseService<Folder> {

    //创建文件夹
    int insert(Folder folder);

    //查询所有文件夹
    List<Folder> findFolderAll();

    //修改文件夹名称
    int updateFolderName(Folder folder);

    //删除文件夹
    int deleteFolderById(Integer id);

    //根据id查询文件夹的子内容
    List<Folder> findFolderSonById(Integer id);

    //根据id查询单个文件夹信息
    Folder findFolderById(Integer id);

    //根据文件夹id查询文件和文件夹
    Map findFolderFileById(Integer id);
}
